<section>
<h2>Register</h2>
<?php Common::renderFlashMessage() ?>

<?php if($this->errorMessage) : ?>
<p><?php echo $this->errorMessage; ?></p>
<?php endif ?>

<form method="post" id="formLogin" name="formLogin" action="<?php $_SERVER['PHP_SELF']; ?>">
	<p>
		<label for="user">Username:</label><input type="text" id="user" name="user" value="<?php echo @$_POST['user'] ?>">
	</p>
	<p>
		<label for="pass">Password: </label><input type="password" id="pass" name="pass">
	</p>
	<p>
		<label for="pass">Confirm Password: </label><input type="password" id="confpass" name="confpass">	
	</p>
	<p>
		<input type="submit" value="submit" id="submit" name="submitRegister">	
	</p>
</form>

<p>or <a href="/user/login">Login</a></p>
</section>